import { _decorator, Component, director, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('backButton')
export class backButton extends Component {
    // private label:Node = null
    private spriteSplash:Node = null
    start() {
        // this.label = this.node.getChildByName("Label")
        this.spriteSplash = this.node.getChildByName("SpriteSplash")
    }

    update(deltaTime: number) {
        
    }

    handlerClickBack(){
        this.spriteSplash.active=true
    }
    handlerClickCancel(){
        this.spriteSplash.active=false
    }
    handlerClickConfirm(){
        director.loadScene("start")
    }
}


